GDK W32: Optimize clipboard handling a bit
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 19 Mar 2016 09:49:56 +0000 (09:49 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 26 Mar 2016 00:03:50 +0000 (00:03 +0000)
commitb9b67e05e1f1f036322addafcd1479aebbc0fde5
tree1c4fe28cec134e6ae2eda1393df361bf95ddef48
parent692c3b11ff3877de90b653536d13dafc4e879ab8
GDK W32: Optimize clipboard handling a bit

Delay as long as possible before calling OpenClipboard(),
call CloseClipboard() as quickly as possible after that.
Don't call OpenClipboard() when we don't need to (for example,
we don't need to open clipboard to call GetClipboardOwner()).

Also, print out actual W32 error code in some cases where it
was not printed before.

https://bugzilla.gnome.org/show_bug.cgi?id=763907
gdk/win32/gdkdisplay-win32.c
gdk/win32/gdkproperty-win32.c
gdk/win32/gdkselection-win32.c